package day4;

/**
 * 构造器 其中一个构造器 完全包含另一个构造器的方法
 */

public class Apple {


    public String name;
    public String color;
    public Double weight;


    public Apple(){};

    public Apple(String name,String color){


        this.name = name;
        this.color = color;


    }

    public Apple(String name,String color,double weight){


        this(name,color);

        this.weight = weight;

    }


}
